// To parse this JSON data, do
//
//     final exchangeListModel = exchangeListModelFromJson(jsonString);

import 'dart:convert';

ExchangeListModel exchangeListModelFromJson(String str) => ExchangeListModel.fromJson(json.decode(str));

String exchangeListModelToJson(ExchangeListModel data) => json.encode(data.toJson());

class ExchangeListModel {
  ExchangeListModel({
    this.id,
    this.points,
    this.rate,
    this.amount,
    this.applyTime,
    this.serviceDate,
  });

  int? id;
  num? points;
  num? rate;
  num? amount;
  int? applyTime;
  String? serviceDate;

  factory ExchangeListModel.fromJson(Map<String, dynamic> json) => ExchangeListModel(
        id: json["id"],
        points: json["points"],
        rate: json["rate"],
        amount: json["amount"],
        applyTime: json["applyTime"],
        serviceDate: json['serviceDate'],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "points": points,
        "rate": rate,
        "amount": amount,
        "applyTime": applyTime,
        'serviceDate': serviceDate,
      };
}
